﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PayForRegistrantionManager.aspx.cs" Inherits="RegisterWeb.Manager.RegistrationFeeManager.payForRegistrantionManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
         <link href="../../css/main.css" rel="stylesheet" type="text/css" />
        <link href="../../js/jquery-easyui-1.2.6/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
	    <script src="../../js/jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    	<script type="text/javascript">
    	    var obj1 = "";
    	    var obj2 = "";
        	    var obj3 = "";
    	        var obj4 = "";
    	    $(function () {
  
    	        url1 = "ashx/PayForRegistrantionService.ashx?action=get&hpname=" + "&rfoutpatientype=";

    	        $('#dg').datagrid({
    	            title: '挂号费管理',
    	            iconCls: 'icon-edit',
    	            width: 700,
    	            height: 350,
    	            toolbar: "#tb",
    	            idField: 'PayForRegistrantion_ID',
    	            url: url1,
    	            pagination: true,
    	            rownumbers: true,
    	            fitColumns: true,
    	            singleSelect: true,
    	            columns: [[
                     { field: 'payForRegistrantion_ID', title: '编号', width: 60 },
	    	    	 { field: 'hospital_Name', title: '医院名', width: 100 },
                     { field: 'departments_Name', title: '科室名', width: 70 },
			         { field: 'outpatient_OutpaitentTypeName', title: '门诊类型', width: 70 },
                     { field: 'payForRegistrantion_Type', title: '支付方式', width: 70 },
                     { field: 'payForRegistrantion_AddTime', title: '添加时间', width: 70 },
                     { field: 'payForRegistrantion_Menory', title: '费用', width: 70 }
                    ]]
    	        });
    	    });
    	    function PayForRegistrantion() {
    	        obj1 = document.getElementsByName("date1")[0].value; 
	            alert(obj1);
  	        obj2 = document.getElementsByName("date2")[0].value; alert(obj2);
  	        obj3 = document.getElementsByName("departments")[0].value; alert(obj3);
    	        obj4 = document.getElementsByName("rfoutpatientype")[0].value; alert(obj4);
    	        $('#dg').datagrid('options').url = "ashx/PayForRegistrantionService.ashx?action=get&date1=" + obj1 + "&date2=" + obj2 + "&departments=" + obj3 + "&rfoutpatientype=" + obj4;
    	        $('#dg').datagrid("reload");
    	    }
        </script>
</head>
<body>
	<table id="dg" " style="padding:5px;height:auto">
	</table>         
    	<div id="tb"> 
                 添加时间: <input  id="date1" name="date1"  class="easyui-datebox" style="width:80px"> 
			                到: <input  id="date2" name="date2"  class="easyui-datebox" style="width:80px"> 
		        	科室名: 
		        	<input id="departments" name="departments" class="easyui-combobox" style="width:70px"
					url="ashx/DepartmentsService.ashx"
					valueField="Departments_ID" textField="Departments_Name" panelHeight="auto">  
                    门诊类型: 
	    		 <input   id="OutpatientType"   name="rfoutpatientype"  class="easyui-combobox" style="width:70px"
					url="ashx/ParametersService.ashx?type=regType"
					valueField="SystemParameter_ID" textField="SystemParameter_Name" panelHeight="auto"> 
                    
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="PayForRegistrantion()">查询</a> 
           		<a href="ashx/PayForRegistrantionService.ashx?action=getExcel" class="easyui-linkbutton" onclick="">导出Excel</a> 

            </div>
</body>
</html>
